package com.rui.scmsadminapp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.web.context.WebServerPortFileWriter;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ComponentScan({"com.rui.admin.service","com.rui.admin.controller","com.rui.common.config"})
@MapperScan("com.rui.admin.mapper")
@EnableDiscoveryClient
@EnableTransactionManagement
public class ScmsAdminAppApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ScmsAdminAppApplication.class);
        app.addListeners(new ApplicationPidFileWriter(), new WebServerPortFileWriter());
        app.run(args);
    }

}
